import { ref, reactive} from "vue"
import axios from 'axios'

// 分页
async function get_domain_list(page=1,where='',limit=15,order=""){
    let domain_list = null
    await axios.get('/api/domain_list',{params:{page,where,limit,order}})
    .then(response => {
        domain_list = response.data
    })
    return domain_list
}

async function post_domain_save(data){
    let res = null
    await axios.post('/api/domain_save',data)
    .then(response => {
        res = response.data
    }).catch(error=>{
    })
    return res
}




export {get_domain_list,post_domain_save}